<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>

<div class="subtitle">
  <h3></h3>
</div>
<div id="printArea">
<s:if test="model.is_cal==0">
	<h1 align="center" style="color:green">用户<!-- 参与计量 -->账单</h1>
</s:if>
<s:if test="model.is_cal==1">
	<h1 align="center" style="color:green">用户<!-- 不参与计量 -->账单</h1>
</s:if>
<h3 align="left" style="color:green">查看信息</h3>
<table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
  <tr>
    <th width="16%" align="right">分摊周期开始日期：</th>
    <td width="34%"><s:date name='model.start_date' format="yyyy-MM-dd"/></td>
    <th width="16%" align="right">分摊周期结束日期：</th>
    <td width="34%"><s:date name='model.end_date' format="yyyy-MM-dd"/></td>
    </tr>
  <tr>
    <th width="16%" align="right">所属户主：</th>
    <td width="34%"><s:property value='model.name'/></td>
    <th width="16%" align="right">楼栋：</th>
    <td width="34%"><s:property value='model.b_name'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">单元：</th>
    <td width="34%"><s:property value='model.unit_no'/></td>
    <th width="16%" align="right">楼层：</th>
    <td width="34%"><s:property value='model.floor_no'/></td>
  </tr>
  <tr>
    <th width="16%" align="right">门牌：</th>
    <td width="34%"><s:property value='model.house_num'/></td>
    <th width="16%" align="right">是否参与计量收费：</th>
    <td width="34%">
    	<s:if test="model.is_cal==0">参与</s:if>
    	<s:if test="model.is_cal==1">不参与</s:if>
    </td>
  </tr>
  <tr>
  	<s:if test='model.is_cal==0'>
	    <th width="16%" align="right">供热面积：</th>
	    <td width="34%"><s:property value='model.hear_area'/></td>
	    <th width="16%" align="right">基本热费：</th>
	    <td width="34%"><s:property value='model.base_heat_money'/></td>
    </s:if>
    <s:if test='model.is_cal==1'>
	    <th width="16%" align="right">供热面积：</th>
	    <td width="34%"><s:property value='model.hear_area'/></td>
	    <th width="16%" align="right">基本热费：</th>
	    <td width="34%">0</td>
    </s:if>
  </tr>
  <s:if test='model.is_cal==0'>
  <tr>
    <th width="16%" align="right">散热权重：</th>
    <td width="34%"><s:property value='model.heat_weight'/></td>
    <th width="16%" align="right">分摊比例：</th>
    <td width="34%"><s:property value='model.share_percent'/></td>
  </tr>
  </s:if>
  <s:if test='model.is_cal==1'>
  <tr>
    <th width="16%" align="right">散热权重：</th>
    <td width="34%">0</td>
    <th width="16%" align="right">分摊比例：</th>
    <td width="34%">0</td>
  </tr>
  </s:if>
  <tr>
  	<s:if test='model.is_cal==0'>
	    <th width="16%" align="right">分摊热费：</th>
	    <td width="34%"><s:property value='model.share_heat_money'/></td>
	    <th width="16%" align="right">户修正系数：</th>
	    <td width="34%"><s:property value='model.xz_factor'/></td>
    </s:if>
    <s:if test='model.is_cal==1'>
    	<th width="16%" align="right">分摊热费：</th>
	    <td width="34%">0</td>
	    <th width="16%" align="right">户修正系数：</th>
	    <td width="34%"><s:property value='model.xz_factor'/></td>
    </s:if>
  </tr>
  <tr>
  	<s:if test='model.is_cal==0'>
	  	<th width="16%" align="right" style="color:red">计量总热费：</th>
	    <td width="34%"><s:property value='model.total_heat_money'/></td>
	    <th width="16%" align="right">参考散热量：</th>
	    <td width="34%"><s:property value='model.refer_heat_num'/></td>
	  </s:if>
	  <s:if test='model.is_cal==1'>
	  	<th width="16%" align="right" style="color:red">计量总热费：</th>
	    <td width="34%">0</td>
	    <th width="16%" align="right">参考散热量：</th>
	    <td width="34%">0</td>
	  </s:if>
  </tr>
  <tr>
    <th width="16%" align="right" style="color:red">面积热费：</th>
    <td width="34%"><s:property value='model.mjrf'/></td>
    <th width="16%" align="right">散热器数量合计：</th>
    <td width="34%"><s:property value='model.sink_num'/></td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td colspan="3"><input type="button" class="websub" onclick="history.back();" value="返 回" />
    <input type="button" class="websub" onclick="jqueryPrint();" value="打 印" />	</td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="10%">散热器编号</th>
      <th width="10%">评价系数K</th>
      <!--th width="10%">散热器耦合修正系数Kc</th-->
      <!--th width="10%">散热器其他修正系数Ke</th-->
      <th width="10%">分配表数值</th>
      <th width="10%">散热器权重</th>
      <th width="10%">分摊比例</th>
      <th width="10%">分摊热费</th>
      <th width="10%">参考散热量</th>
    </tr>
    <s:if test="model.is_cal==0">
    <s:iterator value="shareSinkResultList" var="cur" status="vs">
      <tr align="center">
        <td><s:property value="#cur.sink_no"/></td>
        <td><s:property value="#cur.power_factor"/></td>
        <!--td><s:property value="#cur.couple_factor"/></td-->
        <!--td><s:property value="#cur.other_factor"/></td-->
        <td><s:property value="#cur.meter_num"/></td>
        <td><s:property value="#cur.heat_weight"/></td>
        <td><s:property value="#cur.share_percent"/></td>
        <td><s:property value="#cur.share_heat_money"/></td>
        <td><s:property value="#cur.refer_heat_num"/></td>
      </tr>
    </s:iterator>
    </s:if>
    <s:if test="model.is_cal==1">
    	<s:iterator value="shareSinkResultList" var="cur" status="vs">
	      <tr align="center">
	        <td><s:property value="#cur.serious_num"/></td>
	        <td>0</td>
	        <td>0</td>
	        <td>0</td>
	        <td>0</td>
	        <td>0</td>
	        <td>0</td>
	      </tr>
	    </s:iterator>
    </s:if>
  </table>
   </div>
<script type="text/javascript" src="/commons/scripts/jquery.printarea.js"></script>
<script type="text/javascript">
function jqueryPrint(){
	 $j("div#printArea").printArea();  
}
</script>
</body>
</html>
